package edu.gdkm.demo12;

public class CourseTest {
    public static void main(String[] args) {
        Course c1=new Course();
        c1.setCourseCode(1);
        c1.setCourseName("大学英语");
        Course c2=new Course();
        c2.setCourseCode(2);
        c2.setCourseName("大学语文");
        Course c3=new Course();
        c3.setCourseCode(2);
        c3.setCourseName("大学语文");
        System.out.println(c2.equals(c3));
        CourseManager cm = new CourseManager();
        cm.addCourse(c1);
        cm.addCourse(c2);
        cm.addCourse(c3);
        System.out.println("增加了元素后的课程列表");
        cm.listAllCourse();

//        Course c4=new Course();
//        c4.setCourseCode(1);
//        c4.setCourseName("大学英语");
//        cm.removeCourse(c4);
        cm.removeCourse(c1);
        System.out.println("删除了元素后的课程列表");
        cm.listAllCourse();
    }
}
